TfrxDesigner

The TfrxDesigner component is a report designer. When using this component, you get an opportunity to use the report designer in your project. The component itself contains only a few designer settings; the designer itself is connected when adding the “frxDesgn” unit into the “Uses” list (that occurs automatically when using the given component).

The component contains the following properties:

property CloseQuery: Boolean default True;

Defines, whether it is necessary to ask about report saving on the designer closing.

property OpenDir: String ;

The name of a folder, from which the file is opened by default.

property SaveDir: String ;

The name of a folder, where the file is saved to by default.

property Restrictions: TfrxDesignerRestrictions;

A set of flags, which forbid different operations in the designer. May contain either one value, or a combination several values:

drDontInsertObject – forbid objects’ insertion

drDontDeletePage – forbid pages’ deletion

drDontCreatePage – forbid new pages’ creation

drDontChangePageOptions – forbid modifying page’s properties

drDontCreateReport – forbid creation of a new report

drDontLoadReport – forbid report’s loading

drDontSaveReport – forbid report’s saving

drDontPreviewReport – forbid report’s preview

drDontEditVariables – forbid variables’ editing

drDontChangeReportOptions – forbid modifying the report’s properties

property OnLoadReport: TfrxLoadReportEvent;

TfrxLoadReportEvent = function (Report: TfrxReport): Boolean of object ;

The event occurs when loading a report. With the help of this event, you can manage report's loading from DB. See more information in the corresponding chapter.

property OnSaveReport: TfrxSaveReportEvent;

TfrxSaveReportEvent = function (Report: TfrxReport; SaveAs: Boolean):

Boolean of object ;

The event occurs when saving a report. With the help of this event, you can manage process of report’s saving in DB. See more information in the corresponding chapter.

property OnShow: TNotifyEvent;

The event occurs when the designer starts.